package com.zhuoan.im.webapp.dao.mapper;

import com.zhuoan.im.webapp.dao.model.GroupMember;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface GroupMemberMapper {
    int deleteByPrimaryKey(Long id);

    int insert(GroupMember record);

    int insertSelective(GroupMember record);

    GroupMember selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(GroupMember record);

    int updateByPrimaryKey(GroupMember record);

    List<Long> queryInCurrentGroupUserIds(Long userGroupsId);

    int removeMember(@Param("groupId") String groupId, @Param("targetId") String targetId);
}